/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TheBoard;

import Headquarters.viewPerspective.perspective;
import Headquarters.viewPerspective.whitePerspective;
import java.awt.Dimension;
import java.awt.Point;
import javax.swing.JLayeredPane;

import anotherFrameWork.point;
import thePieces.theKing;
import thePieces.theSpritePieces;

/**
 *
 * @author Windows7
 */
public class multipleLayer extends JLayeredPane{
    
    /*private String bottomBackGround;
    private String theBoard;
    private String rightPanel;
    private String landScape;
    private String theScroll;*/
    
    private BackGround bottomBackGround;
    private BackGround theBoard;
    private BackGround rightPanel;
    private BackGround landScape;
    private BackGround theScroll;
    private perspective playerBoard;
    //private theSpritePieces pieces;
    
    private Point[] pos = {new Point(0,0),new Point(50,50), new Point(400,0), new Point(425,28), new Point(423,200)};
    
    
    public multipleLayer(String bottomBackGround,String theBoard,String rightPanel,String landScape,String theScroll)
    { 
        this.bottomBackGround = new BackGround(bottomBackGround,pos[0].x,pos[0].y);
        this.theBoard = new BackGround(theBoard, pos[1].x, pos[1].y);
        this.rightPanel = new BackGround(rightPanel, pos[2].x, pos[2].y);
        this.landScape = new BackGround(landScape,pos[3].x, pos[3].y);
        this.theScroll = new BackGround(theScroll,pos[4].x, pos[4].y);
        this.playerBoard = new whitePerspective(400,400);
        //this.pieces = new theKing("ChessForImages\\Middle Ages Theme\\RookBlack.png",new point(52,52),theSpritePieces.colorOfPiexes.black);
        //theSpritePieces   pieces2 = new theKing("ChessForImages\\Middle Ages Theme\\RookBlack.png",new point(89,89),theSpritePieces.colorOfPiexes.black);
        this.setPreferredSize(new Dimension(608, 400));
        
        
        
        
        this.add(this.theBoard,new Integer(1));
        this.add(this.theScroll,new Integer(4));
        this.add(this.landScape,new Integer(3));
        this.add(this.rightPanel,new Integer(2));
        this.add(this.bottomBackGround,new Integer(0));
        this.add(this.playerBoard, new Integer(5));
        //this.add(this.pieces,new Integer(5));
        //this.add(pieces2,new Integer(6));
        
        
        
        //this.repaint();
    }
    
}
